/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.lanchimage;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.server.common.persistence.DataEntity;

/**
 * 启动页图片管理Entity
 * @author 王磊
 * @version 2016-09-05
 */
public class LanchImage extends DataEntity<LanchImage> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// 图片名称
	protected String url;		// 图片地址
	protected Date startDate;		// 开始显示时间
	protected Date endDate;		// 结束显示时间
	
	public LanchImage() {
		super();
	}

	public LanchImage(String id){
		super(id);
	}

	@Length(min=0, max=255, message="图片名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="图片地址长度必须介于 0 和 255 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
}